package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Reservation;
import com.zzyl.nursing.dto.ReservationDto;
import com.zzyl.nursing.vo.CountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface MemberReservationService extends IService<Reservation> {
    int getCancelledCount(Long userId, LocalDateTime startOfDay, LocalDateTime endOfDay);

    void add(ReservationDto dto);

    List<Reservation> page(Integer status);

    void cancel(Long id);

    /**
     * 定时更新预约状态
     */
    public void updateReservationStatus();

    List<CountVo> getCountByTime(LocalDateTime startOfDay,LocalDateTime endOfDay);
}
